package Level02_one;

import java.util.Arrays;
import java.util.HashSet;

public class Test {
    public static void main(String[] args) {
        String[] arr = {"a", "f", "b", "c", "a", "d"};
        HashSet<Object> hashSet = new HashSet<>();
        hashSet.addAll(Arrays.asList(arr));
        System.out.println(hashSet);
//        for (String s : arr) {
//            hashSet.add(s);
//        }
//        System.out.println(hashSet);
    }
}
